package logic;

import structure.SplayTree;


/**
 * WordSetSplay
 * @author Jorge Lainfiesta 11142
 * @since Oct 17, 2012
 * @version 1
 */
public class WordSetSplay implements WordSet {
    SplayTree<Word> base;
    
    /**
     * Constructor
     */
    public WordSetSplay(){
        base = new SplayTree<Word>();
    }
    /**
     * Agrega elemento al conjunto
     * @param wordObject 
     */
    @Override
    public void add(Word wordObject) {
        if(!base.contains(wordObject))
        
            base.add(wordObject);
        
    }

    @Override
    public Word get(Word word) {
        return base.get(word);
    }
}
